# encoding  :  utf-8 _*_
# @author   :  朱清闯
# @software :  PyCharm
# time      :  2022/3/22 16:47
from account.models import User


# 如该mobile手机号码已经注册过了返回False，未注册返回True
def verify(phone):
    has_registered = True
    user = User.objects.filter(phone=phone)
    if len(user) >= 1:
        has_registered = False
    return has_registered
